import BaseModel from '../BaseModel'

import EmployeeStatistics from './EmployeeStatistics';
import BossStatistics from './BossStatistics';
import Repository from './Repository';

/**
 * 基本用户对象
 */
export default class Account extends BaseModel  {

    /**账号*/
    public account = ""
    /**名称*/
    public name = ""
    /**头像*/
    public avatar = ""
    /**jpush alias*/
    public push_alias = ""
    /**jpush tags, 多个tag用,分隔*/
    public push_tag = ""
    /**角色: 1-店员, 2-老板, 3-收银*/
    public role = 0
    /**首页右上角app标题*/
    public app_title = ""
    /**入库许可认证(0.未通过认证，1.已通过认证)*/
    public stock_authorized = 0
    /**业绩对象信息(仅当role&#x3D;1时才有值)*/
    public employee_statistics = new EmployeeStatistics()
    /**老板端主要信息(仅当role&#x3D;2时才有值)*/
    public boss_statistics = new BossStatistics()
    /**店面库存仓库*/
    public store_repository = new Repository()
}
